//
//  LLBannerView.h
//  PandaMakeUp
//
//  Created by dl on 15/12/15.
//  Copyright © 2015年 lrlz. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(uint, LLBannerViewOptions) {
    LLBannerViewNone = 0u << 0, // NONE
    LLBannerViewAutoScroll = 1u << 0, // 是否自动滚动 (默认显示)
    LLBannerViewNoPageControll = 1u << 1, // 不显示page control
    LLBannerViewPageControllLeftBottom = 1u << 2, // 左下角显示page control
    LLBannerViewPageControllMidCenter = 1u << 3, // 中下方显示page control (默认)
    LLBannerViewPageControllLeftRight = 1u << 4, // 右下角显示page control
};

@interface LLBannerView : UIView

/**
 *  图片URL数组
 */
@property(nonatomic, strong) NSArray<NSString *> *imgUrls;

/**
 *  点击item的block
 */
@property(nonatomic, copy) void (^clickItemBlock)(NSInteger index);

// 选中时，page control的图片
@property(nonatomic, strong) UIImage *lightedPageControlImg;
// 非选中时，page contorl的图片
@property(nonatomic, strong) UIImage *normalPageControlImg;

@property(nonatomic, assign) LLBannerViewOptions options;

/**
 *  当前显示的index
 */
@property(nonatomic, readonly, assign) NSInteger curIndex;

/**
 *  获取当前轮播展示的图片
 *
 *  @return 图片
 */
- (LLUIImageView *)getCurItem;

- (void)stopTimer;

- (void)startTimer;

@end
